<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Event</title>
</head>

<body>

</body>

<script type="module">
  import { Event } from '../dist/index.js'

  const event = new Event()

  event.on('test', (a, b) => {
    console.log(a, b)
  })

  event.dispatch('test', 1, 2)
</script>

</html>